# 100以内素数之和

def is_prime(n):
    for j in range(2, n//2+1):
        if n % j == 0:
            return
    return True

s = 0
for i in range(2, 100):
    if is_prime(i):
        print(i)
        s += i
print(s)